<!DOCTYPE html> 
<html>
<head>
  <title>Pong!</title> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
  <link href="../pong.css" media="screen, print" rel="stylesheet" type="text/css" /> 
</head> 
 
<body> 

  <div id="sidebar">

    <h2>This is Pong!</h2>

    <div class='description'>
      <p>
        Game.Runner提供了一个60fps的双缓冲画布游戏循环，使游戏本身可以专注于在每次调用update（）方法时更新其游戏状态，
        并在每次调用draw（）方法时进行呈现。


      </p>
      <p>
        Game.Runner旨在可用于任何基于画布的JavaScript游戏。
      </p>
    </div>

  </div>

  <canvas id="game">
    <div id="unsupported">
      Sorry, this example cannot be run because your browser does not support the &lt;canvas&gt; element
    </div>
  </canvas>

  <script src="game.js" type="text/javascript"></script> 
  <script src="pong.js" type="text/javascript"></script>
  <script type="text/javascript">
  Game.ready(function() {
    var pong = Game.start('game', Pong);
  });
  </script>

</body> 
</html>
